const state = {
    products: [
        {id: 1, title: 'iphone 11', price: 8000},
        {id: 2, title: 'iphone 12', price: 10000},
    ]
}

const mutations = {
    setPruduct(state, payload) {
        state.products = payload
    }
}

export default{
    namespaced: true,
    state,
    mutations
}